package groupb6.shopsystem.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class OrderWithReturnInfo {
    @ApiModelProperty("订单信息")
    private List<CheckOrderForm> orderInfo;

    @ApiModelProperty("退货信息")
    private ReturnInfo returnInfo;

    @Data
    public static class ReturnInfo {
        @ApiModelProperty("退货id")
        private Integer id;
        @ApiModelProperty("退货状态")
        private Integer status;
        @ApiModelProperty("退款金额")
        private Float refund;
        @ApiModelProperty("退货发货时间")
        private Timestamp deliverTime;
        @ApiModelProperty("退货结束时间")
        private Timestamp finishTime;
        @ApiModelProperty("商家是否同意退货")
        private Integer allowed;
        @ApiModelProperty("原因")
        private String reason;
        @ApiModelProperty("物流单号")
        private String trackingNumber;
    }
}
